package com.example.cloud.dao.business.attendance;

import com.example.cloud.model.personal.MainClass;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by ygl on 2017/4/9.
 */
@Repository
public interface MainClassDao extends JpaRepository<MainClass,Long>{

    List<MainClass> findAllByAccountIdAndDutyDateBetween(Long accountId, Date startTime, Date endTime);

    List<MainClass> findAllByDutyDateBetween(Date startTime, Date endTime);

}
